package zuoye;

import java.util.Scanner;

public class text_4 {
    public static void main(String[] args) {
        Scanner br = new Scanner(System.in);
        System.out.println("请输入这个数");
        int shuzi = br.nextInt();
        System.out.println("这个数字" + shuzi);
        int a = shuzi % 10;
        System.out.println("shuchu" + a);
        int b = shuzi / 10 % 10;
        System.out.println("shuchu"+b);
        int c =shuzi/100%10;
        System.out.println("shuchu"+c);
        int d =shuzi/1000%10;
        System.out.println("shuzi"+d);
        int e =shuzi/10000%10;
        System.out.println("shuzi"+e);
        int sum =a+b+c+d+e;
        System.out.println("各位总和："+sum);
    }
}
